<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>狂神说</title>
    <!--<link href=/public/mine.css rel="stylesheet" type="text/css"/>-->
    <!--<link th:href="@{/public/mine.css}" rel="stylesheet" type="text/css"/>-->
</head>
<body>
<h1>Success</h1>

<!--th:text就是将div中的内容设置为它指定的值，和之前学习的Vue一样-->
<div th:text="${msg}"></div>
<div>
    <table class="a" style="border: 1px solid">
        <tr class="a">
            <th style="border: 1px solid">id</th>
            <th style="border: 1px solid">name</th>
            <th style="border: 1px solid">gender</th>
            <th style="border: 1px solid">age</th>
            <th style="border: 1px solid">操座</th>
        </tr>
        <tr th:each="stu:${list}">
            <td th:text="${stu.id}" style="border: 1px solid"></td>
            <td th:text="${stu.name}" style="border: 1px solid"></td>
            <td th:text="${stu.gender}" style="border: 1px solid"></td>
            <td th:text="${stu.age}" style="border: 1px solid"></td>
            <td style="border: 1px solid"><a href="@{/edit/{id}(id=${stu.id})}">修改</a> | <a href="#">删除</a></td>
        </tr>
    </table>
</div>
</body>
</html>